import 'package:floor/floor.dart';

import '../entity/GoodsScratch.dart';

@dao
abstract class GoodsScratchDao{

  @Query("select * from GoodsScratch order by createdDateTime desc limit :limit offset :offset")
  Future<List<GoodsScratch>> findAllByPageable(int offset, int limit);

  @Insert(onConflict: OnConflictStrategy.replace)
  Future<int> insertGoodsScratch(GoodsScratch goodsScratch);

  @delete
  Future<void> deleteGoodsScratch(GoodsScratch goodsScratch);

}